package pers.qianyu.exception;

/**
 * @author mizzle rain
 * @date 2020-12-06 22:36
 */
public class BusinessException extends LambBaseException {
    private static final long serialVersionUID = -7523475070140311046L;
    private final Integer code;

    public BusinessException(ILambErrorCodeEnum errorCode) {
        super(errorCode.getMessage());
        this.code = errorCode.getCode();
    }

    @Override
    public Integer getCode() {
        return code;
    }
}
